package cn.cht.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

public class Configuration {
    /**
     * 数据源
     */
    private DataSource dataSource;
    /**
     * key: statementId
     * value: 封装好的mappedStatement对象
     */
    Map<String,MappedStatement> map =new HashMap();

    public Configuration() {
    }

    public Configuration(DataSource dataSource, Map<String, MappedStatement> map) {
        this.dataSource = dataSource;
        this.map = map;
    }

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }

    public Map<String, MappedStatement> getMap() {
        return map;
    }

    public void setMap(Map<String, MappedStatement> map) {
        this.map = map;
    }
}
